<template>
  <view class="fun-flex-col page">
    <view class="fun-flex-col fun-relative group_3">
      <view class="fun-flex-col pos_2">
        <view class="fun-flex-col fun-mt-16 list-item" v-for="(item, index) in items" :key="index" @click="toDetail('Quantitative Bond Strategy Fund I')">
          <view class="fun-flex-row fun-justify-between fun-items-center group_4">
            <text class="font">Quantitative Bond Strategy Fund I</text>
            <text class="font_2 text_3">Status: Finished</text>
          </view>
          <view class="fun-flex-row equal-division fun-justify-between">
            <view class="fun-flex-col fun-items-start group_6 equal-division-item">
              <text class="font_2 text_4">Net Total Amount:</text>
              <text class="font_3 text_7 mt-13">305,692.42</text>
            </view>
            <view class="fun-flex-col fun-items-start group_6 equal-division-item ml-25">
              <text class="font_2 text_5">Net Return:</text>
              <text class="font_4 text_8 mt-13">+56924.2</text>
            </view>
            <view class="fun-flex-col fun-items-start group_6 equal-division-item ml-25">
              <text class="font_2 text_6">Performance Fee</text>
              <text class="font_5 text_9 mt-13">-11924.84</text>
            </view>
          </view>
          <view class="divider"></view>
          <view class="fun-flex-row fun-justify-between fun-items-center group_7">
            <text class="font_6">Expiry date: 2024.5.29</text>
            <text class="font_2 text_10">Order No.123456</text>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    components: {},
    props: {},
    data() {
      return {
        items: [null, null, null, null],
      };
    },

    methods: {
		toDetail(value){
			uni.navigateTo({url:`/pages/myPositions/productDetail?title=${value}`})
		}
	},
  };
</script>

<style scoped lang="scss">
  .ml-5 {
    margin-left: 10rpx;
  }
  .ml-25 {
    margin-left: 50rpx;
  }
  .mt-13 {
    margin-top: 26rpx;
  }
  .page {
    padding: 32rpx 32rpx 200rpx;
    background-color: #00033b;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    .group {
      padding-left: 36rpx;
      .text {
        color: #ffffff;
        font-size: 30rpx;
        font-family: SF Pro Text;
        font-weight: 600;
        line-height: 22.18rpx;
      }
      .image {
        width: 34rpx;
        height: 22rpx;
      }
      .image_2 {
        width: 30rpx;
        height: 22rpx;
      }
      .image_3 {
        width: 48rpx;
        height: 22.66rpx;
      }
    }
    .group_2 {
      padding: 16rpx 0 8rpx;
      .image_4 {
        width: 48rpx;
        height: 48rpx;
      }
      .pos {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
      }
      .text_2 {
        color: #ffffff;
        font-size: 32rpx;
        font-family: SF Pro Display;
        font-weight: 300;
        line-height: 22.82rpx;
      }
    }
    .group_3 {
      .group_5 {
        margin-top: 286rpx;
        filter: blur(3.5rpx);
        width: 214rpx;
        height: 8rpx;
      }
      .view {
        margin-top: 0;
      }
      .pos_2 {
        .list-item {
          padding: 24rpx;
          background-color: #1b1d53;
          border-radius: 16rpx;
          &:first-child {
            margin-top: 0;
          }
          .group_4 {
            .font {
              font-size: 28rpx;
              font-family: SF Pro Display;
              line-height: 26.26rpx;
              font-weight: 700;
              color: #ffffff;
            }
          }
          .equal-division {
            margin-top: 28rpx;
            .group_6 {
              .font_3 {
                font-size: 28rpx;
                font-family: SF Pro Display;
                font-weight: 700;
                color: #ffffff;
              }
              .font_4 {
                font-size: 28rpx;
                font-family: SF Pro Display;
                font-weight: 700;
                color: #5ceec4;
              }
              .font_5 {
                font-size: 28rpx;
                font-family: SF Pro Display;
                line-height: 20.62rpx;
                font-weight: 700;
                color: #e85353;
              }
            }
          }
          .font_2 {
            font-size: 20rpx;
            font-family: SF Pro Display;
            font-weight: 300;
            color: #ffffff;
          }
          .divider {
            margin: 20rpx 0;
            background-color: #ffffff33;
            height: 2rpx;
          }
          .group_7 {
            .font_6 {
              font-size: 20rpx;
              font-family: SF Pro Display;
              line-height: 17.98rpx;
              font-weight: 300;
              color: #ffffff;
            }
            .text_10 {
              line-height: 14.54rpx;
            }
          }
        }
      }
    }
  }
</style>